package com.hp.service;

import com.hp.entity.Link;
import com.hp.result.DataGridResultInfo;

import java.util.List;

public interface LinkService {

    /**
     * 查询所有
     */
    public List<Link> findAll() throws Exception;

    /**
     * 分页查询
     * @param page
     * @param rows
     * @return
     * @throws Exception
     */
    public DataGridResultInfo findlinkList(int page, int rows) throws Exception;

    /**
     *
     * @param id
     * @return
     * @throws Exception
     */
    public Link findById(String id)throws Exception;

    /**
     *
     * @param link
     * @throws Exception
     */
    public void updateLink(Link link)throws Exception;

}
